<?php
/**
 * Created by PhpStorm.
 * User: edmmss
 * Date: 2018/11/9
 * Time: 11:08
 */

namespace app\modules\factoryMethod\vehicle;


/**
 * Class CarFerrari
 * @package app\modules\factoryMethod\vehicle
 */
class CarFerrari extends AbstractVehicle
{
    public $color;

    /**
     * className
     *
     * @date   2018/11/9
     * @author edmmss
     * @param $rgb
     * @return mixed
     */
    public function setColor($rgb)
    {
        // TODO: Implement setColor() method.
        $this->color = $rgb;
    }

    /**
     * className
     *
     * @date   2018/11/9
     * @author edmmss
     */
    public function addFerrariSpeaker()
    {
        $this->additional = '给我台法拉利加个法拉利音箱先';
    }
}